package com.mine.springmvc.controller;

import com.mine.springmvc.annotation.Autowired;
import com.mine.springmvc.annotation.Controller;
import com.mine.springmvc.annotation.RequestMapping;
import com.mine.springmvc.service.TestService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/riemann")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/query")
    public String query(HttpServletRequest request, HttpServletResponse response, String name) {

        String aa =  testService.get(name);
        System.out.println(aa);
        return aa;
    }


}
